<?php

//No direct access

defined('_JEXEC') or die('Restricted access');

?>

<div id="ownservices">


 <div id="mainmenuownservice"><?php echo MenuHelper::nav(); ?></div>


	<div id="mainownservice">

	<h3><?php echo JText::_('OWNSERVICE_SETTINGS'); ?></h3>

	<hr />

	<?php $items = $this->items; ?>

	<form action="<?php echo JRoute::_('index.php?option=com_ownservice'); ?>" method="post" name="adminForm">

	<table class="admintable">

		<tr>

			<td colspan="2"><h3><?php echo JText::_('OWNSERVICE_BANK_FEE'); ?></h3></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_BANK_FEE'); ?> (THB)</td>

			<td><input type="text" id="fee" name="setting[bank_fee]" value="<?php echo $items['bank_fee']; ?>" size="10" /></td>

		</tr>

		<tr>

			<td colspan="2"><hr /></td>

		</tr>

		<tr>

			<td colspan="2"><h3><?php echo JText::_('OWNSERVICE_DATE_TIME'); ?></h3></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_DATE_FORMAT'); ?></td>

			<td><?php echo $this->lists['date_format']; ?></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_TIME_FORMAT'); ?></td>

			<td><?php echo $this->lists['time_format']; ?></td>

		</tr>

		<tr>

			<td colspan="2"><hr /></td>

		</tr>

		<tr>

			<td colspan="2"><h3><?php echo JText::_('OWNSERVICE_PRICE'); ?></h3></td>

		</tr>

		<tr>

			<td class="key"><?php echo JText::_('OWNSERVICE_PRICE_FORMAT'); ?></td>

			<td><?php echo $this->lists['price_format']; ?></td>

		</tr>
			

		<tr>

			<td colspan="2"><hr /></td>

		</tr>

		<tr>

			<td colspan="2"><h3><?php echo JText::_('OWNSERVICE_FILES'); ?></h3></td>

		</tr>

		<tr>
			<td class="key"><?php echo JText::_('OWNSERVICE_PATH_FILE'); ?></td>

			<td><input type="text" name="setting[path]" id="path" size="30" value="<?php echo $items['path']?$items['path']:'images/stories/ownservices'; ?>" /></td>
		</tr>

		<tr>

			<td colspan="2"><hr /></td>

		</tr>

		<tr>

			<td colspan="2" align="center">

			<?php if($this->access->canEdit):?><input type="submit" name="save" value="<?php echo JText::_('OWNSERVICE_SAVE'); ?>" /><?php endif; ?>

			<input type="button" name="cancel" value="<?php echo JText::_('OWNSERVICE_BACK'); ?>" onClick="javascript:document.location.href='<?php echo JText::_('index.php?option=com_ownservice'); ?>';" />

			</td>

		</tr>

	</table>

	<input type="hidden" name="id" value="<?php echo $row->id; ?>" />

	<input type="hidden" name="option" value="com_ownservice" />

	<input type="hidden" name="task" value="save" />

	<input type="hidden" name="Itemid" value="<?php echo JRequest::getVar('Itemid'); ?>" />

	<input type="hidden" name="controller" value="setting" />

	<input type="hidden" name="view" value="settings" />

	<?php echo JHTML::_( 'form.token' ); ?>

	</form>

	</div>

</div>